package com.rope.backEnd.mapper;


import com.rope.backEnd.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
    @Select("select * from rope_database.user")
    List<User> list();

    @Select("select * from rope_database.user where name=#{userName}")
    User userSul(@Param("userName") String userName);

}
